clc;
clear all;close all;
warning off all;
addpath('utils');

isImgDisplay = false; % flag to display the groundtruth and detections

datasetPath = 'D:\Dataset\VisDrone2019-DET-val'; % dataset path

detectronOutputPaths = {
    'D:\exps\VisDrone-FRCNN-FPN-R50-FPN-210722\VisDrone-FRCNN-FPN-R50-FPN&RPNAttrAttenGT-P5Graft-SelfAdd-GN-1x',
    'D:\exps\VisDrone-FRCNN-FPN-R50-FPN-210722\VisDrone-FRCNN-FPN-R50-FPN&RPNAttrAttenGT-P5Graft-SelfAdd-GN-2x',
    'D:\exps\VisDrone-FRCNN-FPN-R50-FPN-210722\VisDrone-FRCNN-FPN-R50-FPNAttrAttenGT-P5Graft-SelfAdd-GN-1x',
    'D:\exps\VisDrone-FRCNN-FPN-R50-FPN-210722\VisDrone-FRCNN-FPN-R50-FPNAttrAttenGT-P5Graft-SelfAdd-GN-2x',
    'D:\exps\VisDrone-FRCNN-FPN-R50-FPN-210722\VisDrone-FRCNN-FPN-R50-FPNAttrAttenUNI-P5Graft-GN-1x',
    'D:\exps\VisDrone-FRCNN-FPN-R50-FPN-210722\VisDrone-FRCNN-FPN-R50-FPNAttrAttenUNI-P5Graft-GN-2x'
};

for i=1:length(detectronOutputPaths)
    detectronOutputPath = detectronOutputPaths{i};
    evalDET_maxAP(datasetPath, detectronOutputPath, isImgDisplay);
end

